<?php
namespace app\web\controller;


class Qr extends Base
{
    public function Qr()
    {
global $_G, $_P;
$op = !empty($_P['op']) ? $_P['op'] : 'display';
if ($op == 'display') {
	$url = $_P['url'];
	require_once VENDOR_PATH . 'qrcode/phpqrcode.php';
	$errorCorrectionLevel = "L";
	$matrixPointSize = "5";
	\QRcode::png($url, false, $errorCorrectionLevel, $matrixPointSize);
	exit();
}

//二维码
}
}